<?php 
   require_once('config.php');
   $id = getValue('id','str','POST',0);
   $active = getValue('active','int','POST',0); 
   $db = new DB();
   $saved = $db->query("UPDATE news SET new_active=" . $active . " WHERE new_id IN(". $id .")");
   echo $saved;
?>